package service

func  SearchPage(originPage,originPerage int64) (limit int64,offset int64) {
	var page int64=1;
	if originPage>0 {
		page=originPage
	}
	if originPerage>0 {
		limit=originPerage
	}else{
		limit=18
	}
	offset=(page-1)*limit
	return limit,offset
}

